/*
 * @Description: 门店支付渠道
 * @Date: 2022-12-10 09:05:20
 * @Author: lizhiqiang
 */
import { StorePaymentChannel } from "@/types/api";
import {get,post} from "@/utils/request";

export const G = (id:string)=>{
   return get(`/cdwl-merchant/inner/storepaymentchannel/info/${id}`)
}

export const GL = (params:StorePaymentChannel)=>{
    return post("/cdwl-merchant/inner/storepaymentchannel/list",params)
}

export const S = (params:StorePaymentChannel)=>{
    return post("/cdwl-merchant/inner/storepaymentchannel/save",params)
}

export const U=(params:StorePaymentChannel)=>{
    return post("/cdwl-merchant/inner/storepaymentchannel/update",params)
}

export const D = (params:Array<string>)=>{
    return post("/cdwl-merchant/inner/storepaymentchannel/deleteBatch",params)
}
/**
 * 门店支付渠道管理
 * @param params 
 * @returns 
 */
export const SC =(params:{
    storeId:string,
    paymentChannelIds:string
})=>{
    return post(`/cdwl-merchant/inner/storepaymentchannel/storePaymentChannel/${params.storeId}`,params)
}